﻿// ===============================================================================
// XCI.NET 西安交通信息WinForm开发框架 2018 版权所有
// ===============================================================================

namespace XCI.Sys
{
    /// <summary>
    /// 权限系统常量
    /// </summary>
    public class SysConst
    {
        /// <summary>
        /// JwtToken缓存键
        /// </summary>
        public const string JwtTokenCacheKey = "Cache-JwtToken";

        /// <summary>
        /// 用户权限列表缓存键
        /// </summary>
        public const string UserModuleListCacheKey = "Cache-UserModuleList";

        /// <summary>
        /// 用户权限字典缓存键
        /// </summary>
        public const string UserModuleMapCacheKey = "Cache-UserModuleMap";

        /// <summary>
        /// 用户数据字典键值对缓存键
        /// </summary>
        public const string DicMapCacheKey = "Cache-DicMap";

        public const string Empty = "";
        public const string RootTreeId = "0";
        public const string RootTreeText = "无";

        /// <summary>
        /// 默认日期时间格式字符串
        /// </summary>
        public const string DEFAULT_DATETIME_PATTERN = "yyyy-MM-dd HH:mm:ss";

        /// <summary>
        /// 日期分钟格式字符串
        /// </summary>
        public const string DEFAULT_DATE_MS_PATTERN = "yyyy-MM-dd HH:mm";

        /// <summary>
        /// 默认日期格式字符串
        /// </summary>
        public const string DEFAULT_DATE_PATTERN = "yyyy-MM-dd";

        /// <summary>
        /// 默认时间格式字符串
        /// </summary>
        public const string DEFAULT_TIME_PATTERN = "HH:mm:ss";

        /// <summary>
        /// Id字段
        /// </summary>
        public const string FIdName = "id";

        /// <summary>
        /// Ids字段
        /// </summary>
        public const string FIdsName = "ids";

        /// <summary>
        /// ParentId字段
        /// </summary>
        public const string FParentIdName = "parentId";

        /// <summary>
        /// Code字段
        /// </summary>
        public const string FCodeName = "code";

        /// <summary>
        /// 关键字字段
        /// </summary>
        public const string FKeyName = "key";

        /// <summary>
        /// 状态字段
        /// </summary>
        public const string FStatusName = "status";

        /// <summary>
        /// existById接口名称
        /// </summary>
        public const string ApiExistByIdName = "existById";

        /// <summary>
        /// existByCode接口名称
        /// </summary>
        public const string ApiExistByCodeName = "existByCode";

        /// <summary>
        /// existByName接口名称
        /// </summary>
        public const string ApiExistByNameName = "existByName";

        /// <summary>
        /// insert接口名称
        /// </summary>
        public const string ApiInsertName = "insert";

        /// <summary>
        /// update接口名称
        /// </summary>
        public const string ApiUpdateName = "update";

        /// <summary>
        /// delete接口名称
        /// </summary>
        public const string ApiDeleteName = "delete";

        /// <summary>
        /// updateStatus接口名称
        /// </summary>
        public const string ApiUpdateStatusName = "updateStatus";

        /// <summary>
        /// batchUpdateValues接口名称
        /// </summary>
        public const string ApiBatchUpdateValuesName = "batchUpdateValues";

        /// <summary>
        /// selectById接口名称
        /// </summary>
        public const string ApiSelectByIdName = "selectById";

        /// <summary>
        /// selectByCode接口名称
        /// </summary>
        public const string ApiSelectByCodeName = "selectByCode";

        /// <summary>
        /// refreshCache接口名称
        /// </summary>
        public const string ApiRefreshCacheName = "refreshCache";

        /// <summary>
        /// export接口名称
        /// </summary>
        public const string ApiExportName = "export";

        /// <summary>
        /// selectPageList接口名称
        /// </summary>
        public const string ApiSelectPageListName = "selectPageList";

        /// <summary>
        /// selectList接口名称
        /// </summary>
        public const string ApiSelectListName = "selectList";
    }
}